package com.scalar.chiptrack.sales.forms;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.sales.TopCustomers;
import com.scalar.chiptrack.sales.TopCustomer;

import java.util.ArrayList;

import org.apache.struts.util.LabelValueBean;

/**
 * User: ganesh
 * Date: Nov 20, 2008
 * Time: 10:13:31 AM
 */
public class TopCustomersForm extends ChipTrackActionForm
{
    private String CustomerName = null;
    private String CustomerType = "0";
    private TopCustomer topCustomer = new TopCustomer() ;
    private ArrayList ranks = new ArrayList();

    public String getCustomerType() {
        return CustomerType;
    }

    public void setCustomerType(String customerType) {
        CustomerType = customerType;
    }

    public ArrayList getCustpmerTypes()
    {
        ArrayList customerTypes = new ArrayList();
        customerTypes.add( new LabelValueBean("Customers", "1"));
        customerTypes.add( new LabelValueBean("End Customers", "2"));
        return customerTypes;
    }

    public TopCustomer getTopCustomer() {
        return topCustomer;
    }

    public void setTopCustomer(TopCustomer topCustomer) {
        this.topCustomer = topCustomer;
    }
    public ArrayList getRanks() {
        return ranks;
    }

    public void setRanks(ArrayList ranks) {
        ArrayList ranklist = new ArrayList();
        for ( int i = 1; i < 20; i++ )
        {
            ranklist.add( new LabelValueBean( i+"", i+"" ) );
        }
        this.ranks= ranklist;
    }
}
